package org.ricks.common.db;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author chenwei
 * @Title:
 * @Package
 * @Description:
 * @date 2020/12/2316:46
 */
public class StringColumnHandler implements ColumnHandler {
    public StringColumnHandler() {
    }

    public boolean match(Class<?> propType) {
        return propType.equals(String.class);
    }

    public Object apply(ResultSet rs, int columnIndex) throws SQLException {
        return rs.getString(columnIndex);
    }
}

